package com.hxxy.wyp.petsLover.common.entities.vo;

/**
 * a simple object represents an error result for an AJAX invocation
 */
public class AjaxError extends AjaxResult<Object> {
    /**
     * create an error
     * @param error error message
     */
    public AjaxError(String error) {
        setMessage(error);
    }

    /**
     * create an error
     * @param error error message
     * @param errorCode error code
     */
    public AjaxError(String error, String errorCode) {
        setMessage(error);
        setCode(errorCode);
    }
}
